<div id="main">
    <div class="container-fluid">
        <div class="page-header">
        	<div class="pull-left">
        		<h1>账号管理</h1>
        	</div>
        	<div class="pull-right">
        		<ul class="stats">
        			<li class='lightred'>
        				<i class="icon-calendar"></i>
        				<div class="details">
        					<span class="big"></span>
        					<span></span>
        				</div>
        			</li>
        		</ul>
        	</div>
        </div>
        <div class="breadcrumbs">
        	<ul>
        		<li>
        			<a href="javascript:void(0);">后台管理</a>
        			<i class="icon-angle-right"></i>
        		</li>
        		<li>
        			<a href="javascript:void(0);">系统管理</a>
        			<i class="icon-angle-right"></i>
        		</li>
        		<li>
        			<a href="javascript:void(0);">账号管理</a>
        		</li>
        	</ul>
        	<div class="close-bread">
        		<a href="#"><i class="icon-remove"></i></a>
        	</div>
        </div>
        <div class="row-fluid">
        	<div class="span12">
        		<div class="box box-color box-bordered">
        			<div class="box-title">
        				<h3>
        					<i class="icon-th-list"></i>
        					账户管理
        				</h3>
                        <div class="actions">
        					<a rel="tooltip" data-original-title="添加" href="<?=$this->url('system/edit')?>" class="btn btn-danger"><i class="icon-plus"></i> 添加管理员账号</a>
        				</div>
        			</div>
        			<div class="box-content nopadding">
        				<table class="table table-hover table-nomargin dataTable table-bordered" width="100%">
        					<thead>
        						<tr>
        							<th>序号</th>
        							<th>账户</th>
        							<th>最后登录时间</th>
                                    <th>登录IP</th>
                                    <th>状态</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
        						</tr>
        					</thead>
                            <?
                                foreach($re as $k=>$v){
                                    ?>
                                    <tr>
            							<td><?=$k+1?></td>
            							<td><?=$v['username']?></td>
                                        <td><?=date('Y-m-d H:i:s',$v['lasttime'])?></td>
            							<td><?=$v['lastip']?></td>
            							<td><?if($v['status']==2){echo '<font color="red">冻结</font>';}elseif($v['status']==1){echo '<font color="green">正常</font>';}?></td>
                                        <td><?=date('Y-m-d H:i:s',$v['createtime'])?></td>
            							<td>
                                            <a data-original-title="修改" rel="tooltip" class="btn btn-small btn-success" href="javascript:pub_alert_html('<?=$this->url("system/edit?id=".$v['id'])?>',true,true);"><i class="icon-edit"></i></a>
                                            <a href="javascript:pub_alert_confirm(this,'确定该操作？','<?=$this->url("system/status")?>?id=<?=$v["id"]?>');" class="btn btn-small btn-danger" style="background-color: <?=$v['status']==1?'':'#40bf40'?>;"><?=$v['status']==1?'禁用':'使用'?></a>
                                            <a href="javascript:pub_alert_confirm(this,'删除不可恢复，确定要删除吗？','<?=$this->url("system/del")?>?id=<?=$v["id"]?>');" class="btn btn-small btn-danger" title="删除"><i class="icon-remove"></i></a>
						                </td>
            						</tr>
                                    <?
                                }
                            ?>
        				</table>
        			</div>
        		</div>
        	</div>
        </div>
    </div>
</div>